﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/PageTemplate.Master" AutoEventWireup="True"
    Codebehind="Default.aspx.cs" Inherits="BingZi.HY.UI.Center.Manager.app_BotSpiderUI.Default"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <BingZiControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="蜘蛛记录列表" HeadTitleTxt="蜘蛛记录">
        <BingZiControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="Manager.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="蜘蛛记录" />
    </BingZiControls:HeadMenuWebControls>
    <BingZiControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="蜘蛛记录列表">
            <asp:GridView ID="GridView1" runat="server" OnSorting="GridView1_Sorting" OnRowCreated="GridView1_RowCreated" >
                <Columns>
                    <asp:TemplateField SortExpression="ValueID" HeaderText="序号"> 
                        <ItemTemplate>
                        <a href="Manager.aspx?IDX=<%#Eval("ValueID")%>&CMD=List"><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="蜘蛛IP" SortExpression="BotIp" DataField="BotIp" />
                    <asp:BoundField HeaderText="蜘蛛" SortExpression="BotName" DataField="BotName" />
                    <asp:BoundField HeaderText="访问地址" SortExpression="BotUrl" DataField="BotUrl" />
                    <asp:BoundField HeaderText="时间" SortExpression="StartTime" DataField="StartTime" />
                </Columns>
            </asp:GridView>
            <BingZiControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </BingZiControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </BingZiControls:TabOptionItem>
        <BingZiControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body">
                        蜘蛛IP</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="BotIp_Input" title="请输入蜘蛛IP~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        蜘蛛</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="BotName_Input" title="请输入蜘蛛~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        访问地址</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="BotUrl_Input" title="请输入访问地址~300:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        时间</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="StartTime_Input" title="请输入时间~datetime" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="查询" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </BingZiControls:TabOptionItem>
    </BingZiControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
    </script>

</asp:Content>
